<script setup>
import AppHeader from '@/components/AppHeader.vue'
import AppLeft from '@/components/AppLeft.vue'
</script>

<template>
  <div>
    <el-container class="container">
      <el-header class="header">
        <!-- 页面头部以标签形式使用AppHeader.vue -->
        <app-Header></app-Header>
      </el-header>
      <el-container>
        <el-aside width="200px" class="left">
          <!-- 页面左侧以标签形式使用AppLeft.vue -->
          <app-Left></app-Left>
        </el-aside>
        <el-main class="main">
          <!-- 页面右侧路由显示 -->
          <RouterView />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.container {
  height: 100vh;
}
.header {
  width: 100%;
  height: 6vh;
  background-color: antiquewhite;
}
.left {
  background-color: white;
  height: 94vh;
}
.main {
  background-color: beige;
  height: 94vh;
}
</style>
